/*eslint-disable*/
import routes from '@/router/path'

const state = {
  userData: []
}

// getters
const getters = {
  getUserName: state => state.userData.user_name,
  getUserList: state => state.userData.list
}

// mutations
const mutations = {
  updateUserData(state, value) {
    state.userData = value
  }
}

export default {
  state,
  getters,
  mutations
}